<?xml version="1.0" encoding="UTF-8" ?>
<?oracle-xsl-mapper
  <!-- SPECIFICATION OF MAP SOURCES AND TARGETS, DO NOT MODIFY. -->
  <mapSources>
    <source type="WSDL">
      <schema location="../obtenerDatosDocumentoDefaultDA.wsdl"/>
      <rootElement name="OutputParameters" namespace="http://xmlns.oracle.com/pcbpel/adapter/db/sp/obtenerDatosDocumentoDefaultDA"/>
    </source>
  </mapSources>
  <mapTargets>
    <target type="WSDL">
      <schema location="../guardarDocumentos.wsdl"/>
      <rootElement name="GENERARPLANTILLAMC" namespace="http://mincetur.gob.pe/SIC/documento/generarPlantillaMC"/>
    </target>
  </mapTargets>
  <!-- GENERATED BY ORACLE XSL MAPPER 11.1.1.6.0(build 111214.0600.1553) AT [MON SEP 09 15:51:11 COT 2013]. -->
?>
<xsl:stylesheet version="1.0"
                xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
                xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
                xmlns:ns1="http://mincetur.gob.pe/SIC/expediente/swEnviarSolicitud/guardarPlantillaSolicitud"
                xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
                xmlns:db="http://xmlns.oracle.com/pcbpel/adapter/db/sp/obtenerDatosDocumentoDefaultDA"
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xmlns:ns5="http://mincetur.gob.pe/SIC/documento/DocumentoTipo"
                xmlns:bpm="http://xmlns.oracle.com/bpmn20/extensions"
                xmlns:ns2="http://mincetur.gob.pe/SIC/utilitarios/errorMR"
                xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
                xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
                xmlns:ora="http://schemas.oracle.com/xpath/extension"
                xmlns:ns4="http://mincetur.gob.pe/SIC/documento/RelacionarDocumentoMC"
                xmlns:socket="http://www.oracle.com/XSL/Transform/java/oracle.tip.adapter.socket.ProtocolTranslator"
                xmlns:ns3="http://mincetur.gob.pe/SIC/documento/generarPlantillaMC"
                xmlns:tns="http://xmlns.oracle.com/pcbpel/adapter/db/Servicios+Web/swEnviarSolicitud/obtenerDatosDocumentoDefaultDA"
                xmlns:mhdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.mediator.service.common.functions.MediatorExtnFunction"
                xmlns:oraext="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
                xmlns:dvm="http://www.oracle.com/XSL/Transform/java/oracle.tip.dvm.LookupValue"
                xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
                xmlns:med="http://schemas.oracle.com/mediator/xpath"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
                xmlns:ns0="http://mincetur.gob.pe/SIC/documento/PlantillaTipo"
                xmlns:xdk="http://schemas.oracle.com/bpel/extension/xpath/function/xdk"
                xmlns:xref="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"
                xmlns:client="http://xmlns.oracle.com/Servicios_Web/swEnviarSolicitud/guardarDocumentos"
                xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                xmlns:bpmn="http://schemas.oracle.com/bpm/xpath"
                xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap"
                exclude-result-prefixes="xsi xsl db plt wsdl tns xsd ns1 ns5 ns2 ns4 ns3 ns0 client xp20 bpws bpel bpm ora socket mhdr oraext dvm hwf med ids xdk xref bpmn ldap">
  <xsl:template match="/">
    <ns3:GENERARPLANTILLAMC>
      <ns3:PLANTILLA>
        <xsl:attribute name="COD_STIPODOCU">
          <xsl:text disable-output-escaping="no">VI_SICSTIPODOCUCONSRECESOLI</xsl:text>
        </xsl:attribute>
        <xsl:attribute name="DES_RUTAPLANTILLA">
          <xsl:value-of select="/db:OutputParameters/db:X_CURSOR/db:X_CURSOR_Row/db:DES_RUTAPLANTILLA"/>
        </xsl:attribute>
        <xsl:attribute name="NUM_TIPOENVIO">
          <xsl:value-of select="/db:OutputParameters/db:X_CURSOR/db:X_CURSOR_Row/db:NUM_TIPOENVIO_PLANTILLA"/>
        </xsl:attribute>
        <xsl:attribute name="DES_FORMATO">
          <xsl:value-of select="/db:OutputParameters/db:X_CURSOR/db:X_CURSOR_Row/db:DES_FORMATO_PLANTILLA"/>
        </xsl:attribute>
        <xsl:attribute name="DES_LOCAL">
          <xsl:value-of select="/db:OutputParameters/db:X_CURSOR/db:X_CURSOR_Row/db:DES_LOCAL_PLANTILLA"/>
        </xsl:attribute>
        <xsl:attribute name="DES_PLANTILLA">
          <xsl:value-of select="/db:OutputParameters/db:X_CURSOR/db:X_CURSOR_Row/db:DES_PLANTILLA"/>
        </xsl:attribute>
        <ns0:PARAMETROS>
          <ns0:PARAMETRO>
            <xsl:attribute name="DES_NOMBREPARAMETRO">
              <xsl:text disable-output-escaping="no">ID_EVEN</xsl:text>
            </xsl:attribute>
            <xsl:attribute name="DES_VALORPARAMETRO">
              <xsl:value-of select="/db:OutputParameters/db:X_CURSOR/db:X_CURSOR_Row/db:ID_EVEN"/>
            </xsl:attribute>
          </ns0:PARAMETRO>
        </ns0:PARAMETROS>
      </ns3:PLANTILLA>
      <ns3:RELACIONARDOCUMENTO>
        <ns4:EVENTO>
          <xsl:attribute name="ID_EVEN">
            <xsl:value-of select="/db:OutputParameters/db:X_CURSOR/db:X_CURSOR_Row/db:ID_EVEN"/>
          </xsl:attribute>
          <xsl:attribute name="ID_TRELAEVEN">
            <xsl:value-of select="/db:OutputParameters/db:X_CURSOR/db:X_CURSOR_Row/db:ID_TRELAEVEN"/>
          </xsl:attribute>
        </ns4:EVENTO>
        <ns4:DOCUMENTO>
          <xsl:attribute name="DES_TITULO">
            <xsl:value-of select="/db:OutputParameters/db:X_CURSOR/db:X_CURSOR_Row/db:DES_TITULO"/>
          </xsl:attribute>
          <xsl:attribute name="DES_PERSCREADOR">
            <xsl:value-of select="/db:OutputParameters/db:X_CURSOR/db:X_CURSOR_Row/db:DES_CREADOR"/>
          </xsl:attribute>
          <xsl:attribute name="DES_DOCUMENTO">
            <xsl:value-of select="/db:OutputParameters/db:X_CURSOR/db:X_CURSOR_Row/db:DES_DOCUMENTO"/>
          </xsl:attribute>
          <xsl:attribute name="COD_IDEN">
            <xsl:value-of select="/db:OutputParameters/db:X_CURSOR/db:X_CURSOR_Row/db:COD_IDEN"/>
          </xsl:attribute>
          <xsl:attribute name="ID_STIPODOCU">
            <xsl:value-of select="/db:OutputParameters/db:X_CURSOR/db:X_CURSOR_Row/db:ID_STIPODOCU"/>
          </xsl:attribute>
          <xsl:attribute name="ID_ESTAREL">
            <xsl:text disable-output-escaping="no"></xsl:text>
          </xsl:attribute>
          <xsl:attribute name="ID_TROLESTADOCU">
            <xsl:text disable-output-escaping="no"></xsl:text>
          </xsl:attribute>
          <xsl:attribute name="ID_TRELADOCUESTA">
            <xsl:text disable-output-escaping="no"></xsl:text>
          </xsl:attribute>
          <xsl:attribute name="COD_STIPODOCU">
            <xsl:text disable-output-escaping="no"></xsl:text>
          </xsl:attribute>
          <xsl:attribute name="ID_TIPODOCU">
            <xsl:text disable-output-escaping="no"></xsl:text>
          </xsl:attribute>
          <xsl:attribute name="ID_PERS">
            <xsl:value-of select="/db:OutputParameters/db:X_CURSOR/db:X_CURSOR_Row/db:ID_ADMIN"/>
          </xsl:attribute>
          <xsl:attribute name="FEC_DESDE">
            <xsl:text disable-output-escaping="no"></xsl:text>
          </xsl:attribute>
          <xsl:attribute name="FEC_HASTA">
            <xsl:text disable-output-escaping="no"></xsl:text>
          </xsl:attribute>
          <ns5:DOCUMENTOBINARIO>
            <xsl:attribute name="ARCHIVOB64">
              <xsl:text disable-output-escaping="no"></xsl:text>
            </xsl:attribute>
            <xsl:attribute name="COD_DOCUBINA">
              <xsl:value-of select="/db:OutputParameters/db:X_CURSOR/db:X_CURSOR_Row/db:COD_DOCUBINA"/>
            </xsl:attribute>
            <xsl:attribute name="DES_LOCAURI">
              <xsl:value-of select="/db:OutputParameters/db:X_CURSOR/db:X_CURSOR_Row/db:DES_LOCAURI"/>
            </xsl:attribute>
            <xsl:attribute name="DES_NOMBREAL">
              <xsl:value-of select="/db:OutputParameters/db:X_CURSOR/db:X_CURSOR_Row/db:DES_NOMREAL"/>
            </xsl:attribute>
            <xsl:attribute name="DES_LOCACACHE">
              <xsl:value-of select="/db:OutputParameters/db:X_CURSOR/db:X_CURSOR_Row/db:DES_DOCUMENTO"/>
            </xsl:attribute>
            <xsl:attribute name="ID_EXTEDOCU">
              <xsl:value-of select="/db:OutputParameters/db:X_CURSOR/db:X_CURSOR_Row/db:ID_EXTEDOCU"/>
            </xsl:attribute>
            <xsl:attribute name="ID_LENGDOCU">
              <xsl:value-of select="/db:OutputParameters/db:X_CURSOR/db:X_CURSOR_Row/db:ID_LENGDOCU"/>
            </xsl:attribute>
            <xsl:attribute name="ID_TRELADOCU">
              <xsl:value-of select="/db:OutputParameters/db:X_CURSOR/db:X_CURSOR_Row/db:ID_TRELADOCU"/>
            </xsl:attribute>
            <xsl:attribute name="NUM_BYTES">
              <xsl:value-of select="/db:OutputParameters/db:X_CURSOR/db:X_CURSOR_Row/db:NUM_BYTES"/>
            </xsl:attribute>
            <xsl:attribute name="NUM_FOLIOS">
              <xsl:value-of select="/db:OutputParameters/db:X_CURSOR/db:X_CURSOR_Row/db:NUM_FOLIOS"/>
            </xsl:attribute>
          </ns5:DOCUMENTOBINARIO>
        </ns4:DOCUMENTO>
      </ns3:RELACIONARDOCUMENTO>
    </ns3:GENERARPLANTILLAMC>
  </xsl:template>
</xsl:stylesheet>
